import NewBudgetJournalComp from "containers/budget/budget-journal/new-budget-journal";
import BudgetJournalDetailComp from "containers/budget/budget-journal/budget-journal-detail";
import BudgetJournalDetailSubmitComp from "containers/budget/budget-journal/budget-journal-detail-submit";
import BudgetJournalReCheckDetailComp from "containers/budget/budget-journal-re-check/budget-journal-re-check-detail";
import BudgetBalanceResultComp from "containers/budget/budget-balance/budget-balance-result";
import BudgetBalanceQueryResult from "containers/budget/budget-balance-query/budget-balance-query-result";
import BudgetJournalComp from "containers/budget/budget-journal/budget-journal";
import BudgetJournalReCheckComp from "containers/budget/budget-journal-re-check/budget-journal-re-check";
import BudgetBalanceComp from "containers/budget/budget-balance/budget-balance";
import BudgetBalanceQueryComp from "containers/budget/budget-balance-query/budget-balance-query";

//预算
const budget = {
  key: 'budget',
  icon: 'tags',
  pageRole: "BUDGET",
  subMenu: [
    //预算日记账
    {
      key: 'budget-journal',
      url: '/main/budget/budget-journal',
      components: BudgetJournalComp,
      parent: 'budget',
      pageRole: "BUDGETJOURNAL",
      children: {
        //新建预算日记账
        newBudgetJournal: {
          key: 'new-budget-journal',
          url: '/main/budget/budget-journal/new-budget-journal',
          components: NewBudgetJournalComp,
          parent: 'budgetJournal',
        },
        //预算日记账详情
        budgetJournalDetail: {
          key: 'budget-journal-detail',
          url: '/main/budget/budget-journal/budget-journal-detail/:journalCode',
          components: BudgetJournalDetailComp,
          parent: 'budgetJournal',
        },
        //预算日记账详情(已经提交过的)
        budgetJournalDetailSubmit: {
          key: 'budget-journal-detail-submit',
          url: '/main/budget/budget-journal/budget-journal-detail-submit/:journalCode',
          components: BudgetJournalDetailSubmitComp,
          parent: 'budget-journal-detail-submit'
        }
      }
    },
    //预算余额
    {
      key: 'budget-balance',
      url: '/main/budget/budget-balance',
      components: BudgetBalanceComp,
      parent: 'budget',
      pageRole: "BUDGETAMOUNT",
      children: {
        //预算余额查询结果
        budgetBalanceResult: {
          key: 'budget-balance-result',
          url: '/main/budget/budget-balance/budget-balance-result/:id',
          components: BudgetBalanceResultComp,
          parent: 'budget-balance'
        }
      }
    },
    //预算余额方案查询
    {
      key: 'budget-balance-query',
      url: '/main/budget/budget-balance-query',
      components: BudgetBalanceQueryComp,
      parent: 'budget',
      pageRole: "BUDGETBALANCEPLANINQUIRY",
      children: {
        //预算余额查询结果
        budgetBalanceQueryResult: {
          key: 'budget-balance-query-result',
          url: '/main/budget/budget-balance-query/budget-balance-query-result/:id',
          components: BudgetBalanceQueryResult,
          parent: 'budget-balance-query'
        }
      }
    },
    //预算日记账复核
    {
      key: 'budget-journal-re-check',
      url: '/main/budget/budget-journal-re-check',
      components: BudgetJournalReCheckComp,
      parent: 'budget',
      pageRole: "BUDGETJOURNALREVIEW",
      children: {
        //预算日记账复核详情
        budgetJournalReCheckDetail: {
          key: 'budget-journal-re-check-detail',
          url: '/main/budget/budget-journal-re-check/budget-journal-re-check-detail/:journalCode',
          components: BudgetJournalReCheckDetailComp,
          parent: 'budget-journal-re-check'
        }
      }
    },
    //预算占用调整
    
  ]
};

export default budget
